package dapps.entity.proj;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import dapps.entity.IdEntity;

/**
 * 项目类型.
 * 
 */
@Entity
@Table(name = "projtype")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Type extends IdEntity {
	

	private static final long serialVersionUID = 4865089954888777774L;
	
	@Column(nullable=false,unique=true)
	private String name;
	
	@Column(nullable=false,unique=true)
	private Integer tid;
	
	private Integer chooseable;
	
	
	
	public Integer getChooseable() {
		return chooseable;
	}

	public void setChooseable(Integer chooseable) {
		this.chooseable = chooseable;
	}

	public Integer getTid() {
		return tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String toString() {
		return this.getName();
	}

}